package com.pro.common.api.pay.model.base;

import com.pro.common.api.enums.init.EnumCurrency;
import com.pro.common.api.model.BaseConfigModel;
import com.pro.framework.javatodb.annotation.JTDField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
public abstract class BaseChannel extends BaseConfigModel {
    @Schema(description = "商户")
    private String merchantCode;
    @Schema(description = "支付编号1")
    private String param1;
    @Schema(description = "支付编号2")
    private String param2;
    @Schema(description = "名称")
    private String channelName;
    @Schema(description = "图标")
    @JTDField(group = "基础信息")
    private String icon;
    @Schema(description = "最小金额")
    private BigDecimal minAmount;
    @Schema(description = "最大金额")
    private BigDecimal maxAmount;
    @Schema(description = "手续费")
    private BigDecimal feeRate;
    @Schema(description = "货币")
    private EnumCurrency currency;
    @Schema(description = "支持国家", example = "如果没填取货币默认国家")
    @JTDField(entityName = "siteContent.country", mainLength = 2048, javaTypeEnumClassMultiple = true, entityClassLabel = "countryName", entityClassTargetProp = "code")
    private String countries;
    @Schema(description = "只提交整数")
    private Boolean onlyInteger;
    @Schema(description = "管理端显示")
    private Boolean showAdmin;
    @Schema(description = "默认显示支付金额")
    private String defaultAmount;
    @Schema(description = "描述文章")
    @JTDField(group = "基础信息")
    private String posterCodes;
}
